package com.sql.weeego.bean.base;

/**
 * UcProtectedmembersId entity. @author MyEclipse Persistence Tools
 */

public class UcProtectedmembersId implements java.io.Serializable {

	// Fields

	private Integer uid;
	private String username;
	private Boolean appid;
	private Integer dateline;
	private String admin;

	// Constructors

	/** default constructor */
	public UcProtectedmembersId() {
	}

	/** full constructor */
	public UcProtectedmembersId(Integer uid, String username, Boolean appid,
			Integer dateline, String admin) {
		this.uid = uid;
		this.username = username;
		this.appid = appid;
		this.dateline = dateline;
		this.admin = admin;
	}

	// Property accessors

	public Integer getUid() {
		return this.uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Boolean getAppid() {
		return this.appid;
	}

	public void setAppid(Boolean appid) {
		this.appid = appid;
	}

	public Integer getDateline() {
		return this.dateline;
	}

	public void setDateline(Integer dateline) {
		this.dateline = dateline;
	}

	public String getAdmin() {
		return this.admin;
	}

	public void setAdmin(String admin) {
		this.admin = admin;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof UcProtectedmembersId))
			return false;
		UcProtectedmembersId castOther = (UcProtectedmembersId) other;

		return ((this.getUid() == castOther.getUid()) || (this.getUid() != null
				&& castOther.getUid() != null && this.getUid().equals(
				castOther.getUid())))
				&& ((this.getUsername() == castOther.getUsername()) || (this
						.getUsername() != null
						&& castOther.getUsername() != null && this
						.getUsername().equals(castOther.getUsername())))
				&& ((this.getAppid() == castOther.getAppid()) || (this
						.getAppid() != null
						&& castOther.getAppid() != null && this.getAppid()
						.equals(castOther.getAppid())))
				&& ((this.getDateline() == castOther.getDateline()) || (this
						.getDateline() != null
						&& castOther.getDateline() != null && this
						.getDateline().equals(castOther.getDateline())))
				&& ((this.getAdmin() == castOther.getAdmin()) || (this
						.getAdmin() != null
						&& castOther.getAdmin() != null && this.getAdmin()
						.equals(castOther.getAdmin())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getUid() == null ? 0 : this.getUid().hashCode());
		result = 37 * result
				+ (getUsername() == null ? 0 : this.getUsername().hashCode());
		result = 37 * result
				+ (getAppid() == null ? 0 : this.getAppid().hashCode());
		result = 37 * result
				+ (getDateline() == null ? 0 : this.getDateline().hashCode());
		result = 37 * result
				+ (getAdmin() == null ? 0 : this.getAdmin().hashCode());
		return result;
	}

}